package minijava.ArvoreIntermediaria;

import minijava.Temp.Temp;
import minijava.Temp.Label;

public class JUMP extends Stm
{
  public Expr exp;
  public minijava.Temp.LabelList targets;
  
  public JUMP(Expr e, minijava.Temp.LabelList t)
  {
      exp=e;
      targets=t;
  }
  
  public JUMP(minijava.Temp.Label target)
  {
      this(new NAME(target), new minijava.Temp.LabelList(target,null));
  }
  
  public ExpList kids()
  {
      return new ExpList(exp,null);
  }

  public Stm build(ExpList kids)
  {
      return new JUMP(kids.head,targets);
  }
}

